package LotteryOdds;

import java.util.Scanner;

/**
 *
 * Created by jyo on 15-8-28.
 */
public class LotteryOdds {

    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        System.out.println("How much numbers do u need to draw?");
        int k = in.nextInt();

        System.out.println("What is the highest number ur can draw?");
        int n = in.nextInt();

        int lotteryOdds = 1;
        for (int i = 1;i<=k;i++){

            lotteryOdds = lotteryOdds*(n-i+1)/i;

        }

        System.out.println("Ur odds are 1 in "+lotteryOdds+". Good Luck");

//        System.out.println("Ur odds are 1 in "+lotteryOdds+". Good Luck");
    }
}
